#include <vector>

using namespace std;

class Solution {
public:
    bool increasingTriplet(vector<int>& nums) {
        int l = INT32_MAX;
        int m = INT32_MAX;
        for (int num : nums) {
            if (num <= l) {
                l = num;
            } else if (num < m) {
                m = num;
            }
            if (num > m) {
                return true;
            }
        }
        return false;
    }
};